package Exercise;


class Amimal{
    public String name = "小环";
    public int age;
}
class AB{

}


public class Dog extends Amimal{
    public String name = "小黄";
    public void houseGuard(){
        System.out.println(name+"正在看家");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.houseGuard();
    }
}
